<?php require_once('../../Connections/cotiza.php'); ?>
<?php
$solicitud = $_GET['solicitud'];
$maq       = $_GET['maq'];
$proc      = $_GET['proc'];

$query = "SELECT * FROM mach_det 
                  WHERE mach_solic_id = '$solicitud' 
				    AND mach_id = '$maq'";
$rslt_maq = mysql_query($query,$cotiza) or die (mysql_error());
$row_maq  = mysql_fetch_assoc($rslt_maq);

?>
<table border="0">
  <tr>
    <td>Velocidad</td>
    <td>:</td>
    <td><input name="velocidad[<?php echo $proc;?>]" type="text" class="default" id="velocidad[<?php echo $proc;?>]" onkeypress='return valida_numeros(event)' onKeyUp="calcula_rend('rend',this.value,<?php echo $proc;?>);addVelMaquina(<?php echo $proc;?>,'vel',this.value)"size="4" value="<?php echo $row_maq['mach_velocidad'];?>" /></td>
    <td>Rendimiento (%)</td>
    <td>:</td>
    <td><input name="rendimiento[<?php echo $proc;?>]" type="text" class="default" id="rendimiento[<?php echo $proc;?>]" onkeypress='return valida_numeros(event)' onKeyUp="calcula_rend('ren',this.value,<?php echo $proc;?>);addVelMaquina('<?php echo $proc;?>','ren',this.value)" value="<?php echo $row_maq['mach_rendimiento'];?>" size="4" maxlength="3" /></td>
    <td>Vel final</td>
    <td>:</td>
    <td><input name="vel_final[<?php echo $proc;?>]" type="text" class="default" id="vel_final[<?php echo $proc;?>]" size="4" onkeypress='return valida_numeros(event)' onChange="addVelMaquina(<?php echo $proc;?>,'fin',this.value)" onKeyUp="calcula_rend('fin',this.value,<?php echo $proc;?>);addVelMaquina(<?php echo $proc;?>,'fin',this.value)"/></td>
  </tr>
</table>